﻿//项目状态翻译
function proStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "等待代理机构确认";
            break;
        case "Cancel":
            stateName = "撤销";
            break;
        case "FirstTrialPass":
            stateName = "等待终审";
            break;
        case "FirstTrialNoPass":
            stateName = "初审不通过";
            break;
        case "FinalOrderPass":
            stateName = "终审通过";
            break;
        case "FinalOrderNoPass":
            stateName = "终审不通过";
            break;
        case "TendereeConfirm":
            stateName = "等待初审";
            break;
        case "TendereeDeny":
            stateName = "招标人确认不通过";
            break;
        case "AgencyConfirm":
            stateName = "等待招标人确认";
            break;
        case "AgencyDeny":
            stateName = "代理机构确认不通过";
            break;
        case "NotAccept":
            stateName = "未受理";
            break;
        case "Accept":
            stateName = "已受理";
            break;
        case "SignPass":
            stateName = "签批通过";
            break;
        case "SignNoPass":
            stateName = "签批不通过";
            break;
        case "Repealed":
            stateName = "已废除公示、公告";
            break;
    }
    return stateName;
}
//项目状态翻译--包含代理机构确认、建设单位确认、初审、终审环节
function proStateNameA(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "等待初审";
            break;
        case "Cancel":
            stateName = "撤销";
            break;
        case "FirstTrialPass":
            stateName = "等待终审";
            break;
        case "FirstTrialNoPass":
            stateName = "初审不通过";
            break;
        case "FinalOrderPass":
            stateName = "终审通过";
            break;
        case "FinalOrderNoPass":
            stateName = "终审不通过";
            break;
        case "NotAccept":
            stateName = "未受理";
            break;
        case "Accept":
            stateName = "已受理";
            break;
        case "SignPass":
            stateName = "签批通过";
            break;
        case "SignNoPass":
            stateName = "签批不通过";
            break;
        case "Repealed":
            stateName = "已废除公示、公告";
            break;
    }
    return stateName;
}

//项目状态翻译--包含初审、终审环节
function proStateNameB(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "等待初审";
            break;
        case "Cancel":
            stateName = "撤销";
            break;
        case "FirstTrialPass":
            stateName = "等待终审";
            break;
        case "FirstTrialNoPass":
            stateName = "初审不通过";
            break;
        case "FinalOrderPass":
            stateName = "终审通过";
            break;
        case "FinalOrderNoPass":
            stateName = "终审不通过";
            break;
    }
    return stateName;
}
//项目状态翻译--包含代理机构确认、建设单位确认
function proStateNameC(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "等待代理机构确认";
            break;
        case "Cancel":
            stateName = "撤销";
            break;
        case "AgencyConfirm":
            stateName = "等待招标人确认";
            break;
        case "AgencyDeny":
            stateName = "代理机构确认不通过";
            break;
        case "TendereeConfirm":
            stateName = "招标人确认通过";
            break;
        case "TendereeDeny":
            stateName = "招标人确认不通过";
            break;
        case "Repealed":
            stateName = "已废除公示、公告";
            break;
    }
    return stateName;
}
//项目状态翻译 包括：受理、初审、终审、签批
function proStateNameD(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "等待受理";
            break;
        case "Cancel":
            stateName = "撤销";
            break;
        case "FirstTrialPass":
            stateName = "等待终审";
            break;
        case "FirstTrialNoPass":
            stateName = "初审不通过";
            break;
        case "FinalOrderPass":
            stateName = "等待签批";
            break;
        case "FinalOrderNoPass":
            stateName = "终审不通过";
            break;
        case "NotAccept":
            stateName = "未受理";
            break;
        case "Accept":
            stateName = "等待初审";
            break;
        case "SignPass":
            stateName = "签批通过";
            break;
        case "SignNoPass":
            stateName = "签批不通过";
            break;
    }
    return stateName;
}

//项目状态翻译--包含代理机构确认、建设单位确认、初审、终审环节
function proStateNameBZX(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Cancel":
            stateName = "撤销";
            break;
        case "FirstTrialPass":
            stateName = "等待终审";
            break;
        case "FirstTrialNoPass":
            stateName = "初审不通过";
            break;
        case "FinalOrderPass":
            stateName = "终审通过";
            break;
        case "FinalOrderNoPass":
            stateName = "终审不通过";
            break;
        case "TendereeConfirm":
            stateName = "等待初审";
            break;
        case "TendereeDeny":
            stateName = "招标人确认不通过";
            break;
        case "Submit":
            stateName = "等待招标人确认";
            break;
    }
    return stateName;
}

//人员状态翻译
function perstateNameCheck(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "等待接件";
            break;
        case "ReportSave":
            stateName = "已接件";//编辑，新的业务
            break;
        case "Return":
            stateName = "退件返回";
            break;
        case "Receiver":
            stateName = "等待专家分配";//等待专家分配
            break;
        case "ReceiverSave":
            stateName = "已分配专家";//编辑
            break;
        case "Reviewer":
            stateName = "等待专家评审";
            break;
        case "ReviewerSave":
            stateName = "专家已评审";//编辑
            break;
        case "FirstTrial":
            stateName = "等待初审";
            break;
        case "FirstTrialPass":
            stateName = "初审通过";//编辑
            break;
        case "FirstTrialReturn":
            stateName = "初审退回";//初审不通过
            break;
        case "PublicReturn":
            stateName = "公示后退回";//公示后退回
            break;
        case "WaitingSave":
            stateName = "等待调入";//注册人员调出
            break;
        case "Ending":
            stateName = "已完结";
            break;

    }
    return stateName;
}

//人员用户端状态
function perStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "等待接件";
            break;
        case "ReportSave":
            stateName = "已接件";//编辑，新的业务
            break;
        case "Return":
            stateName = "退件返回";
            break;
        case "Receiver":
            stateName = "等待专家分配";//等待专家分配
            break;
        case "ReceiverSave":
            stateName = "已分配专家";//编辑
            break;
        case "Reviewer":
            stateName = "等待专家评审";
            break;
        case "ReviewerSave":
            stateName = "专家已评审";//编辑
            break;
        case "FirstTrial":
            stateName = "等待初审";
            break;
        case "FirstTrialPass":
            stateName = "已初审";//编辑
            break;
        case "FirstTrialReturn":
            stateName = "初审退回";//初审不通过
            break;
        case "PublicPass":
            stateName = "正在公示"; //正在公示/公告中
            break;
        case "PublicReturn":
            stateName = "公示后退回";//公示后退回
            break;
        case "WaitingSave":
            stateName = "等待调入";//注册人员调出
            break;
        case "Ending":
            stateName = "已完结";
            break;
        default:
            stateName = "编辑";
            break;
       
    }
    return stateName;
}

/**
 *  在线申诉状态翻译
 */
function perCertAppealStateName(val){
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "等待审核";
            break;
        case "AuditPass":
            stateName = "审核通过";
            break;
        case "AuditNoPass":
            stateName = "审核不通过";
            break;
        case "over":
            stateName = "陈述已关闭";
            break;
        default:
            stateName = "-";
            break;
    }
    return stateName;
}

//人员强制变更注销状态
function perChangeStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "已上报";
            break;
        case "Return":
            stateName = "审批返回";
            break;
        case "FinalOrderPass":
            stateName = "审批通过";//编辑
            break;
    }
    return stateName;
}

//人员强制变更注销状态
function perChangeStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "已上报";
            break;
        case "Return":
            stateName = "审批返回";
            break;
        case "FinalOrderPass":
            stateName = "审批通过";//编辑
            break;
    }
    return stateName;
}

//从业人员调入状态
function certPerStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
        case "Receiver":
            stateName = "等待初审";
            break;
        case "FirstTrialReturn":
            stateName = "初审不通过";
            break;
        case "FirstTrialPass":
            stateName = "等待终审";
            break;
        case "FinalOrderPass":
            stateName = "已调入";
            break;
        case "FinalOrderReturn":
            stateName = "终审不通过";
            break;
        case "Return":
            stateName = "已调出";
            break;
            
    }
    return stateName;
}

//人员公示状态
function perPublicStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "等待公示审核";
            break;
        case "FinalOrderPass":
            stateName = "公示审核通过";
            break;
        case "FinalOrderReturn":
            stateName = "公示审核不通过";
            break;
        case "PublicToNotice":
            stateName = "已上报公告";
            break;
    }
    return stateName;
}

//人员公告状态
function perNoticeStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "等待公告审核";
            break;
        case "FinalOrderPass":
            stateName = "公告审核通过";
            break;
        case "FinalOrderReturn":
            stateName = "公告审核不通过";
            break;
    }
    return stateName;
}

//人员业绩状态
function achPerStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "等待初审";
            break;
        case "Submit":   //企业导入
            stateName = "等待初审(企业导入)";
            break;
        case "FirstTrialPass":
            stateName = "等待终审";
            break;
        case "FirstTrialNoPass":
            stateName = "初审不通过";
            break;
        case "FinalOrderPass":
            stateName = "终审通过";
            break;
        case "FinalOrderNoPass":
            stateName = "终审不通过";
            break;
    }
    return stateName;
}

//人员业绩类型
function achPerTypeStateName(val) {
    var TypeName = "";
    switch (val) {
        case "KC":
            TypeName = "勘察";
            break;
        case "SJ":
            TypeName = "设计";
            break;
        case "SG":
            TypeName = "施工";
            break;
        case "JL":
            TypeName = "监理";
            break;
        case "ZBDL":
            TypeName = "招标代理";
            break;
       
    }
    return TypeName;
}
///人员报名培训状态
function perSignUpStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "已上报";//培训计划已上报（未确认）
            break;
        case "Receiver":
            stateName = "已确认";//培训计划已确认/培训计划成绩编辑
            break;
        case "Return":
            stateName = "审核退回";//培训计划退回
            break;
        case "TranReport":// 培训计划成绩已上报（未确认）
            stateName = "成绩已上报";
            break;
        case "TranReceiver":
            stateName = "成绩已录入";// 培训计划成绩已确认（成绩已录入）/培训计划发证申请编辑
            break;
        case "CertReport":
            stateName = "发证申请已上报";// 培训计划发证申请已上报（未确认）
            break;
        case "CertReceiver":
            stateName = "已发证";// 培训计划已发证
            break;
    }
    return stateName;
}
//证书重打状态
function perAgainPlayStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "等待审核";
            break;
        case "FinalOrderPass":
            stateName = "审核通过";
            break;
        case "FinalOrderReturn":
            stateName = "审核不通过";
            break;
    }
    return stateName;
}

//企业状态翻译
function entStateName(val, rowData) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "已上报";
            break;
        case "Receiver":
            stateName = "接件";
            break;
        case "Return":
            stateName = "退件";
            break;
        case "WaterPass":
            stateName = "水利已审核";
            break;
        case "WaterNoPass":
            stateName = "水利审核不通过";
            break;
        case "TrafficPass":
            stateName = "交通已审核";
            break;
        case "TrafficNoPass":
            stateName = "交通审核不通过";
            break;
        case "CommPass":
            stateName = "通信已审核";
            break;
        case "CommNoPass":
            stateName = "通信审核不通过";
            break;
        case "CountyPass":
            stateName = "县级已初审";
            break;
        case "CountyReturn":
            stateName = "县级初审退回";
            break;
        case "CityFirstPass":
            stateName = "州市已初审";
            break;
        case "CityFirstReturn":
            stateName = "州市初审退回";
            break;
        case "CitySecondPass":
            stateName = "州市已审核";
            break;
        case "CitySecondReturn":
            stateName = "州市审核退回";
            break;
        case "CityPass":
            stateName = "州市已审批";
            break;
        case "CityReturn":
            stateName = "州市审批退回";
            break;
        case "ProvinceFirstPass":
            stateName = "省级已初审";
            break;
        case "ProvinceFirstReturn":
            stateName = "省级初审退回";
            break;
        case "ProvinceSecondPass":
            stateName = "省级已审核";
            break;
        case "ProvinceSecondReturn":
            stateName = "省级审核退回";
            break;
        case "ProvincePass":
            stateName = "省级已审批";
            break;
        case "ProvinceReturn":
            stateName = "省级审批退回";
            break;
        case "ExpertPass":
            stateName = "等待公示";
            break;
        case "ExpertReturn":
            stateName = "专家评审退回";
            break;
        case "ApplyCert":
            stateName = "申请打证";
            break;
        case "PublicPass":
            stateName = "公示期内";
            break;
        case "PublicReturn":
            stateName = "公示退回";
            break;
        case "Printed":
                stateName = "已完结";
            break;
        case "WaitCity":
            stateName = "等待州市审核";
            break;
        case "WaitPro":
            stateName = "等待省厅审核";
            break;
        case "AnnouncementPass":
            stateName = "已公示";
            break;
        case "NoticePass":
            stateName = "已公告";
            break;
        case "Ending":
            stateName = "已完结";
            break;
    }
    return stateName;
}

//企业业绩类型不加载项控制
function entAchTypeStateName(val) {
    var stateName = "";
    switch (val) {
        case "001":
            stateName = "ConstructPermit,CompleteCheck";
            break;
        case "002":
            stateName = "ConstructPermit,CompleteCheck";
            break;
        case "003":
            stateName = "ConstructionDrawingReview,ConstructPermit,CompleteCheck,RelatedPersonnel";
            break;
        case "004":
            stateName = "ConstructionDrawingReview,ConstructPermit,CompleteCheck,RelatedPersonnel";
            break;
        case "005":
            stateName = "CompleteCheck";
            break;
        case "006":
            stateName = "";
            break;
        case "007":
            stateName = "?";
            break;
        case "008":
            stateName = "ConstructionDrawingReview,ConstructPermit,CompleteCheck,RelatedPersonnel";
            break;
        default: stateName = "ConstructionDrawingReview,TenderInfo,ContractInfo,ConstructPermit,CompleteCheck,RelatedPersonnel,Attachment";
    }
    return stateName;
}

var theselectsate = [
{ key: "Save", name: "编辑" },
{ key: "Submit", name: "已上报" },
{ key: "Cancel", name: "撤销" },
{ key: "FirstTrialPass", name: "初审通过" },
{ key: "FirstTrialNoPass", name: "初审不通过" },
{ key: "FinalOrderPass", name: "终审通过" },
{ key: "FinalOrderNoPass", name: "终审不通过" },
{ key: "TendereeConfirm", name: "建设单位已确认" },
{ key: "TendereeDeny", name: "招标人确认不通过" },
{ key: "AgencyConfirm", name: "代理机构已确认" },
{ key: "AgencyDeny", name: "代理机构确认不通过" },
{ key: "NotAccept", name: "未受理" },
{ key: "Accept", name: "已受理" },
{ key: "SignPass", name: "签批通过" },
{ key: "SignNoPass", name: "签批不通过" },
{ key: "Repealed", name: "已废除公示、公告" }
]

//承诺制状态翻译
function promisestateStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Report":
            stateName = "已上报";
            break;
        case "AuditPass":
            stateName = "审核通过";
            break;
        case "AuditReturn":
            stateName = "审核退回";
            break;
        case "ApprovalPass":
            stateName = "审批通过";
            break;
        case "ApprovalReturn":
            stateName = "审批退回";
            break;
        case "ReAuditPass":
            stateName = "重审通过";
            break;
        case "ReAuditReturn":
            stateName = "重审退回";
            break;
        case "ReAuditNoPass":
            stateName = "重审不通过";
            break;
        case "Ending":
            stateName = "已完结";
            break;
    }
    return stateName;
}

//证件类型
function perCertificateTypeStateName(val) {
    var certificateType = "";
    switch (val) {
        case "1":
            certificateType = "身份证";
            break;
        case "2":
            certificateType = "军官证";
            break;
        case "3":
            certificateType = "护照";
            break;
        case "4":
            certificateType = "台湾居民身份证";
            break;
        case "5":
            certificateType = "香港永久性居民身份证";
            break;
        case "6":
            certificateType = "警官证";
            break;
        case "9":
            certificateType = "其他";
            break;
    }
    return certificateType;
}

//专家类型
function perExpertTypeStateName(val) {
    var expertType = "";
    switch (val) {
        case "1":
            expertType = "自带专家";
            break;
        case "2":
            expertType = "抽取";
            break;
    }
    return expertType;
}


// 招标类型
function contractingMethodStateName(val) {
    var expertType = "";
    switch (val) {
        case "001":
            expertType = "直接委托";
            break;
        case "00201":
            expertType = "自行招标";
            break;
        case "00202":
            expertType = "委托招标";
            break;
    }
    return expertType;
}

//公示状态
function publicStateName(val) {
    var stateName = "";
    switch (val) {
        case "Save": { stateName = "编辑"; break; }
        case "Report": { stateName = "等待审核"; break; }
        case "Return": { stateName = "审核退回"; break; }
        case "Pass": { stateName = "审核通过"; break; }
    }
    return stateName;
}

//专家类型
function youXiaoStateName(val) {
    var expertType = "";
    switch (val) {
        case 0:
            expertType = "无效";
            break;
        case 1:
            expertType = "有效";
            break;
        case 2:
            expertType = "注销";
            break;
        case 3:
            expertType = "吊销";
            break;
    }
    return expertType;
}

//专家类型
function certificateStateName(val) {
    val=Number(val);
    var expertType = "";
    switch (val) {
        case 0:
            expertType = "无效";
            break;
        case 1:
            expertType = "有效";
            break;
        case 2:
            expertType = "注销";
            break;
        case 3:
            expertType = "吊销";
            break;
    }
    return expertType;
}

//专家类型
function statusTypeStateName(val) {
    var expertType = "";
    switch (val) {
        case "0":
            expertType = "登陆";
            break;
        case "1":
            expertType = "新增";
            break;
        case "2":
            expertType = "修改";
            break;
        case "3":
            expertType = "删除";
            break;
        case "4":
            expertType = "其他";
            break;
        case "5":
            expertType = "访问";
            break;
        case "6":
            expertType = "离开";
            break;
        case "7":
            expertType = "查询";
            break;
        case "8":
            expertType = "安全退出";
            break;
    }
    return expertType;
}

//黑名单状态
function caistateStateName(val) {
    var state = "";
    switch (val) {
        case "Save":
            state = "编辑";
            break;
        case "Submit":
            state = "等待初审";
            break;
        case "FirstTrialPass":
            state = "等待终审";
            break;
        case "FirstTrialNoPass":
            state = "初审不通过";
            break;
        case "FinalOrderPass":
            state = "终审通过";
            break;
        case "FinalOrderNoPass":
            state = "终审不通过";
            break;
    }
    return state;
}

// 登记业务状态翻译
function regStateName(val) {
    var state = "";
    switch (val) {
        case "Save":
            state = "编辑";
            break;
        case "Submit":
            state = "已上报";
            break;
        case "FirstTrialPass":
            state = "初审通过";
            break;
        case "FirstTrialNoPass":
            state = "初审不通过";
            break;
        case "FinalOrderPass":
            state = "终审通过";
            break;
        case "FinalOrderNoPass":
            state = "终审不通过";
            break;
    }
    return state;
}
function regStateNameCheck(val) {
    var state = "";
    switch (val) {
        case "Save":
            state = "编辑";
            break;
        case "Submit":
            state = "等待初审";
            break;
        case "FirstTrialPass":
            state = "等待终审";
            break;
        case "FirstTrialNoPass":
            state = "初审不通过";
            break;
        case "FinalOrderPass":
            state = "已完结";  //终审通过
            break;
        case "FinalOrderNoPass":
            state = "终审不通过";
            break;
    }
    return state;
}

/**
 *
 * @param val
 * @returns {string}
 */
function regEntStateName(val) {
    var state = "";
    switch (val) {
        case "Save":
            state = "编辑";
            break;
        case "Submit":
            state = "已登记";
            break;
        case "LogOut":
            state = "已注销";
            break;
    }
    return state;
}

// 登记类型翻译
function regBusiessType(val) {
    var busiessType = "";
    switch (val) {
        case 1:
            busiessType = "企业招标代理登记";
            break;
        case 2:
            busiessType = "企业招标代理变更";
            break;
        case 3:
            busiessType = "企业招标代理注销";
            break;
        case 4:
            busiessType = "人员招标代理登记";
            break;
        case 5:
            busiessType = "人员招标代理变更";
            break;
        case 6:
            busiessType = "人员招标代理注销";
            break;
        case 7:
            busiessType = "园林绿化执法人员登记";
            break;
        case 8:
            busiessType = "园林绿化执法人员注销";
            break;
    }
    return busiessType;
}

function businessTypeName(v){
    var businessTypeName = "";
    switch (v) {
        case "1":
            businessTypeName = "初始申请";
            break;
        case "2":
            businessTypeName = "资质增项";
            break;
        case "3":
            businessTypeName = "资质升级";
            break;
        case "4":
            businessTypeName = "到期延续";
            break;
        case "5":
            businessTypeName = "资质变更";
            break;
        case "6":
            businessTypeName = "遗失补办";
            break;
        case "7":
            businessTypeName = "资质注销";
            break;
    }
    return businessTypeName;
}

/*注册人员业务类型*/
function certBusinessTypeName(v){
    var businessTypeName = "";
    switch (v) {
        case 'cszc':
            businessTypeName = "初始注册";
            break;
        case 'zxazc':
            businessTypeName = "增项注册";
            break;
        case 'yxzc':
            businessTypeName = "延续注册";
            break;
        case 'bgzc':
            businessTypeName = "变更注册";
            break;
        case 'ysbb':
            businessTypeName = "遗失补办";
            break;
        case 'zxzc':
            businessTypeName = "注销注册";
            break;
        case 'cxzc':
            businessTypeName = "重新注册";
            break;
    }
    return businessTypeName;
}

function qualifytypeName(v) {
    var businessTypeName = "";
    switch (v) {
        case "8b8201e4-9a70-42a2-8aff-7c42e99e9cfb":
            businessTypeName = "试验室资质";
            break;
        case "69a4f9b6-0a84-42eb-b220-b7c103bda593":
            businessTypeName = "监理资质";
            break;
        case "3dd77b20-893c-4b87-9854-f022417e30cb":
            businessTypeName = "建筑业资质";
            break;
        case 'ac42fad1-3ae3-4da1-8dfd-bba8bc1fe377':
            businessTypeName = "质量检测";
            break;
    }
    return businessTypeName;
}

//企业业绩类型不加载项控制
function entAchievementType(val) {
    var stateName = "";
    switch (val) {
        case "001":
            stateName = "ConstructPermit,CompletionAcceptance";
            break;
        case "002":
            stateName = "ConstructPermit,CompletionAcceptance";
            break;
        case "003":
            stateName = "ConstructDrawReview,ConstructPermit,CompletionAcceptance,RelatedPersonnel";
            break;
        case "004":
            stateName = "ConstructDrawReview,ConstructPermit,CompletionAcceptance,RelatedPersonnel";
            break;
        case "005":
            stateName = "CompletionAcceptance";
            break;
        case "006":
            stateName = "";
            break;
        case "007":
            stateName = "?";
            break;
        case "008":
            stateName = "ConstructDrawReview,ConstructPermit,CompletionAcceptance,RelatedPersonnel";
            break;
        default: stateName = "ConstructDrawReview,Tender,Contract,ConstructPermit,CompletionAcceptance,RelatedPersonnel,Attachment";
    }
    return stateName;
}

/**************** 企业业绩BEGIN ****************/
// 企业业绩状态翻译
function achEntState(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "上报审查";
            break;
        case "Revoke":
            stateName = "撤销待编辑";
            break;
        case "FirstTrialPass":
            stateName = "审查通过";
            break;
        case "FirstTrialNoPass":
            stateName = "审查不通过";
            break;
        case "FinalReport":
            stateName = "上报省厅审核";
            break;
        case "FinalOrderPass":
            stateName = "审核通过";
            break;
        case "FinalOrderNoPass":
            stateName = "审核不通过";
            break;
    }
    return stateName;
}
/**************** 企业业绩END ****************/

/**************** 园林绿化企业状态BEGIN ****************/
function regGarEnterpriseState(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "等待初审";
            break;
        case "FirstTrialPass":
            stateName = "等待终审";
            break;
        case "FirstTrialNoPass":
            stateName = "初审不通过";
            break;
        case "FinalOrderPass":
            stateName = "已完结";
            break;
        case "Register":
            stateName = "已登记";
            break;
        case "LogOut":
            stateName = "已注销";
            break;
        case "FinalOrderNoPass":
            stateName = "终审不通过";
            break;
    }
    return stateName;
}
/**************** 园林绿化企业状态END ****************/

/**************** 园林绿化企业公示状态BEGIN ****************/
function regGarAnnouncementState(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "等待审核";
            break;
        case "FinalOrderPass":
            stateName = "已完结";
            break;
        case "FinalOrderNoPass":
            stateName = "审核不通过";
            break;
    }
    return stateName;
}
/**************** 园林绿化企业公示状态END ****************/

/**************** 园林绿化企业业绩登记状态BEGIN ****************/
function regGaregGarAchievementState(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "等待审查";
            break;
        case "Revoke":
            stateName = "撤销";
            break;
        case "FirstTrialPass":
            stateName = "等待审核";
            break;
        case "FirstTrialNoPass":
            stateName = "审查不通过";
            break;
        case "SecondTrialPass":
            stateName = "等待审批";
            break;
        case "SecondTrialNoPass":
            stateName = "审核不通过";
            break;
        case "FinalOrderPass":
            stateName = "已完结";
            break;
        case "FinalOrderNoPass":
            stateName = "审批不通过";
            break;
    }
    return stateName;
}

function regGaregGarOrgEnteringState(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "等待受理";
            break;
        case "Revoke":
            stateName = "撤销";
            break;
        case "FirstTrialPass":
            stateName = "等待初审";
            break;
        case "FirstTrialNoPass":
            stateName = "不受理";
            break;
        case "SecondTrialPass":
            stateName = "等待终审";
            break;
        case "SecondTrialNoPass":
            stateName = "初审不通过";
            break;
        case "FinalOrderPass":
            stateName = "已完结";
            break;
        case "FinalOrderNoPass":
            stateName = "终审不通过";
            break;
    }
    return stateName;
}

function regGaregGarAchievementStateHan(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "上报";
            break;
        case "Revoke":
            stateName = "撤销";
            break;
        case "FirstTrialPass":
            stateName = "审查通过";
            break;
        case "FirstTrialNoPass":
            stateName = "审查不通过";
            break;
        case "SecondTrialPass":
            stateName = "审核通过";
            break;
        case "SecondTrialNoPass":
            stateName = "审核不通过";
            break;
        case "FinalOrderPass":
            stateName = "已完结";
            break;
        case "FinalOrderNoPass":
            stateName = "审批不通过";
            break;
    }
    return stateName;
}

function regGaregGarOrgStateHan(val) {
    var stateName = "";
    switch (val) {
        case "Save":
            stateName = "编辑";
            break;
        case "Submit":
            stateName = "上报";
            break;
        case "Revoke":
            stateName = "撤销";
            break;
        case "FirstTrialPass":
            stateName = "已受理";
            break;
        case "FirstTrialNoPass":
            stateName = "不受理";
            break;
        case "SecondTrialPass":
            stateName = "初审通过";
            break;
        case "SecondTrialNoPass":
            stateName = "初审不通过";
            break;
        case "FinalOrderPass":
            stateName = "已完结";
            break;
        case "FinalOrderNoPass":
            stateName = "终审不通过";
            break;
    }
    return stateName;
}
/**************** 园林绿化企业状态END ****************/